﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
	/// <summary>
	/// 羔羊断奶仓储
	/// </summary>
	public interface ILambweaninginfoRepository
	{
		/// <summary>
		/// 获取羔羊断奶信息
		/// </summary>
		/// <returns></returns>
		Task<IQueryable<Lambweaninginfo>> GetLambweaninginfos();
		/// <summary>
		/// 羊羔断奶删除
		/// </summary>
		/// <param name="ids"></param>
		/// <returns></returns>
		Task<int> DelLambweaninginfos(string loginUserName, params string[] eartag);
		/// <summary>
		/// 羔羊断奶添加
		/// </summary>
		/// <param name="lambweaninginfo"></param>
		/// <returns></returns>
		Task<int> AddLambweaninginfo(List<Lambweaninginfo> lambweaninginfo);
		/// <summary>
		/// 反填羔羊断奶
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		Task<Lambweaninginfo> DteilLambweaninginfo(string eartag);
		/// <summary>
		/// 批量修改羔羊断奶
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
		Task<int> UpdateListLambweaninginfo(List<Lambweaninginfo> entity);
		/// <summary>
		/// 修改羔羊断奶
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
		Task<int> UpdateLambweaninginfo(Lambweaninginfo entity);
	}
}
